package com.itheima.service;

import com.itheima.bean.OrderDetail;

import java.util.List;

public interface OrderDetailService {

    /**
     * 添加订单详情
     * @param orderDetail
     * @return
     */
    int add(OrderDetail orderDetail);

    OrderDetail getOrderDetailById(Long id);

    /**
     * 通过订单id查询订单详情
     * @param id
     * @return
     */
    List<OrderDetail> findByOrderId(Long id);
}
